﻿using CatLib.Container;
using GameFramework.Gameplay;
using GameLogic.ShootGame.Model;

namespace GameLogic.ShootGame.System
{
    /// <summary>
    /// 射击游戏初始化系统
    /// </summary>
    public sealed class ShootGameInitSystem : IGameplaySystem
    {
        [Inject]
        public ShootGameStateModel StateModel { get; set; }
        
        [Inject]
        public ShootingGameParameters Parameters { get; set; }
        
        public void Initialize()
        {
            StateModel.RemainBulletCount.Value = Parameters.BulletCount;
            StateModel.IsFinish.Value = false;
            StateModel.Score.Value = 0;
        }

        public void Dispose()
        {
        }
    }
}